$(function(){
    /*
    //删除单个图片
    $('.thumb-container td a.delete').live('click',function(){
        var id = Z.parseInt($(this).attr('data')),td = $(this).parent();
        Z.confirm({
            content: '确定要删除吗？',
            onConfirm: function(){
                Z.ajax({
                    url: Z.url('/backend/photo/delete',true),
                    data: {
                        id: id
                    },
                    success: function(){
                        $(td).remove();
                    }
                });
            }
        });
        return false;
    });
    
    $('.thumb-container td a.cover').live('click',function(){
        var id = Z.parseInt($(this).attr('data'));
        Z.ajax({
            url: Z.url('/backend/photo/cover/'+id,true)
        });
        return false;
    });
    
    $('.thumb-container td a.image-container img').each(function(){
        $(this).load(function(){
            var h = $(this).height(),w = $(this).width();
            if(Math.floor(h/w)){
                $(this).css('margin-left',(150-w)/2+'px');
            }else{
                $(this).css('margin-top',(150-h)/2+'px');
            }
        });
    });
    
    $('.thumb-container td a.delete').css('opacity','0.8');
            
    new Z.LightBox($('.thumb-container td a.image-container'), []);*/
});